<!--多图多附件增减开始-->
<script type="text/javascript">
function AddRow(tab1,delbutton1,upmethod,inputMethod,moreNum,uptext){
    //添加一行
    var i = document.getElementById(tab1).rows.length;
    var newTr = document.getElementById(tab1).insertRow();
    var moreNum = moreNum + i;
    //添加列
    var newTd0 = newTr.insertCell();
    var newRow  =  '<input type="hidden" name="price_arr[]" id="price_arr'+moreNum+'" value="0">';
	    newRow  += '<div class="row">';
	    newRow  += '    <div class="col-md-6 pl-2">';
	    newRow  += '        <div class="input-group mb-2">';
	    newRow  += '            <span class="input-group-prepend">';
	    newRow  += '                 <span class="input-group-text h7">{:lang('v_video')} {:lang('v_cover')}</span>';
	    newRow  += '            </span>';
        newRow  += '            <input name="thumb_arr[]" id="morepics'+moreNum+'" type="text" class="form-control">';
        newRow  += '            <span class="input-group-append">';
        newRow  += '                <span class="btn btn-success" onclick="upImage(\'#morepics'+moreNum+'\');"><i class="fa fa-image fa-fw mr-1"></i>{:lang('v_upload_img')}</span>';
        newRow  += '            </span>';
        newRow  += '        </div>';
        newRow  += '    </div>';
        newRow  += '    <div class="col-md-6 pl-0">';
        newRow  += '        <div class="input-group mb-2">';
        newRow  += '            <span class="input-group-prepend">';
        newRow  += '                <span class="input-group-text h7">{:lang('v_video')} {:lang('v_address')}</span>';
        newRow  += '            </span>';
        newRow  += '            <input name="file_arr[]" id="morefileurl'+moreNum+'" type="text" class="form-control">';
        newRow  += '            <span class="input-group-append">';
        newRow  += '                <span class="btn btn-success" onclick="upFiles(\'#morefileurl'+moreNum + '\');"><i class="fa fa-video fa-fw mr-1"></i>{:lang('v_upload')} {:lang('v_video')}</span>';
        newRow  += '            </span>';
        newRow  += '        </div>';
        newRow  += '    </div>';
        newRow  += '</div>';
        newRow  += '<div class="row mb-3">';
        newRow  += '    <div class="col-md-6 pl-2">';
        newRow  += '        <div class="input-group mb-2">';
        newRow  += '            <span class="input-group-prepend">';
        newRow  += '                <span class="input-group-text h7">{:lang('v_video')} {:lang('v_title')}</span>';
        newRow  += '            </span>';
        newRow  += '            <input name="title_arr[]" type="text" class="form-control">';
        newRow  += '        </div>';
        newRow  += '    </div>';
        newRow  += '    <div class="col-md-6 pl-0">';
        newRow  += '        <div class="input-group mb-2">';
        newRow  += '            <span class="input-group-prepend">';
        newRow  += '                <span class="input-group-text h7">{:lang('v_video')} {:lang('v_duration')}</span>';
        newRow  += '            </span>';
        newRow  += '            <input name="duration_arr[]" type="number" class="form-control">';
        newRow  += '            <span class="input-group-append">';
        newRow  += '                <span class="input-group-text h7">{:lang('v_minute')}</span>';
        newRow  += '                <span class="input-group-text h7 d-none">{:lang('v_free')}<input type="checkbox" id="price_arr_flag'+moreNum+'" value="1" class="ml-1" onclick="javascript:price_arr_choice(\'#price_arr_flag'+moreNum+'\',\'#price_arr'+moreNum+'\');"></span>';
        newRow  += '                <label class="btn btn-danger">';
        newRow  += '                    <input type="checkbox" class="d-none" id="'+delbutton1+'" onclick="javascript:DelRow(\''+tab1+'\',\''+delbutton1+'\');" />';
        newRow  += '                    <i class="fa fa-trash fa-fw mr-1"></i>{:lang('v_delete_this')}';
        newRow  += '                </label>';
        newRow  += '            </span>';
        newRow  += '        </div>';
        newRow  += '    </div>';
        newRow  += '</div>';
    newTd0.innerHTML = newRow;
}
</script>
{include file="public/js_del_row" /}
<!--多图多附件增减结束-->